package morning.cat;

import feign.Feign;
import feign.jaxrs.JAXRSContract;
import morning.cat.client.JaxRsClient;
import morning.cat.service.UrlService;

/**
 * @describe: 类描述信息
 * @author: morningcat.zhang
 * @date: 2019/6/4 3:09 PM
 */
public class JaxRsClientTest {

    public static void main(String[] args) {

        JaxRsClient rsClient = Feign.builder()
                .contract(new JAXRSContract())
                .target(JaxRsClient.class, UrlService.SERVER_URL);

        String result = rsClient.rsHello();
        System.out.println(result);
    }
}
